
g = 2
h = 7
p = 11
k = 3
l = 3
zi = lift(Mod((g^k)*(h^l),p))
i = 0

print("-------------")

while(i <= 10, {	
	print("zi = ", zi);
	print("k = ", k);
	print("l = ", l);
	verg = lift(Mod(zi,3));
	if(verg == 1, zi = g * zi; k = k+1);
	if(verg == 2, zi = h * zi; l = l+1);
	if(verg == 0, zi = zi^2; k = 2*k; l = 2*l);
	if(zi >= 11, zi = lift(Mod(zi,p)));
	i = i+1;
})


